Optimal. Leaf size=169 \[ -\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {2 e^{3/2} f^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}-\frac {2 e f^2 p}{3 d x}+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-2 g^2 p x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {2476, 2448, 321, 205, 2455, 325} \[ -\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {2 e^{3/2} f^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}-\frac {2 e f^2 p}{3 d x}+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-2 g^2 p x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 321
Rule 325
Rule 2448
Rule 2455
Rule 2476
Rubi steps
\begin {align*} \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx &=\int \left (g^2 \log \left (c \left (d+e x^2\right )^p\right )+\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4}+\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x^2}\right ) \, dx\\ &=f^2 \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx+(2 f g) \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x^2} \, dx+g^2 \int \log \left (c \left (d+e x^2\right )^p\right ) \, dx\\ &=-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{3} \left (2 e f^2 p\right ) \int \frac {1}{x^2 \left (d+e x^2\right )} \, dx+(4 e f g p) \int \frac {1}{d+e x^2} \, dx-\left (2 e g^2 p\right ) \int \frac {x^2}{d+e x^2} \, dx\\ &=-\frac {2 e f^2 p}{3 d x}-2 g^2 p x+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {\left (2 e^2 f^2 p\right ) \int \frac {1}{d+e x^2} \, dx}{3 d}+\left (2 d g^2 p\right ) \int \frac {1}{d+e x^2} \, dx\\ &=-\frac {2 e f^2 p}{3 d x}-2 g^2 p x-\frac {2 e^{3/2} f^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.14, size = 113, normalized size = 0.67 \[ -\frac {\left (f^2+6 f g x^2-3 g^2 x^4\right ) \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 e f^2 p \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {e x^2}{d}\right )}{3 d x}+\frac {2 g p (d g+2 e f) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e}}-2 g^2 p x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.98, size = 350, normalized size = 2.07 \[ \left [-\frac {6 \, d^{2} e g^{2} p x^{4} + 2 \, d e^{2} f^{2} p x^{2} - {\left (e^{2} f^{2} - 6 \, d e f g - 3 \, d^{2} g^{2}\right )} \sqrt {-d e} p x^{3} \log \left (\frac {e x^{2} - 2 \, \sqrt {-d e} x - d}{e x^{2} + d}\right ) - {\left (3 \, d^{2} e g^{2} p x^{4} - 6 \, d^{2} e f g p x^{2} - d^{2} e f^{2} p\right )} \log \left (e x^{2} + d\right ) - {\left (3 \, d^{2} e g^{2} x^{4} - 6 \, d^{2} e f g x^{2} - d^{2} e f^{2}\right )} \log \relax (c)}{3 \, d^{2} e x^{3}}, -\frac {6 \, d^{2} e g^{2} p x^{4} + 2 \, d e^{2} f^{2} p x^{2} + 2 \, {\left (e^{2} f^{2} - 6 \, d e f g - 3 \, d^{2} g^{2}\right )} \sqrt {d e} p x^{3} \arctan \left (\frac {\sqrt {d e} x}{d}\right ) - {\left (3 \, d^{2} e g^{2} p x^{4} - 6 \, d^{2} e f g p x^{2} - d^{2} e f^{2} p\right )} \log \left (e x^{2} + d\right ) - {\left (3 \, d^{2} e g^{2} x^{4} - 6 \, d^{2} e f g x^{2} - d^{2} e f^{2}\right )} \log \relax (c)}{3 \, d^{2} e x^{3}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 154, normalized size = 0.91 \[ \frac {2 \, {\left (3 \, d^{2} g^{2} p + 6 \, d f g p e - f^{2} p e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {1}{2}\right )}}{3 \, d^{\frac {3}{2}}} + \frac {3 \, d g^{2} p x^{4} \log \left (x^{2} e + d\right ) - 6 \, d g^{2} p x^{4} + 3 \, d g^{2} x^{4} \log \relax (c) - 6 \, d f g p x^{2} \log \left (x^{2} e + d\right ) - 2 \, f^{2} p x^{2} e - 6 \, d f g x^{2} \log \relax (c) - d f^{2} p \log \left (x^{2} e + d\right ) - d f^{2} \log \relax (c)}{3 \, d x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.62, size = 740, normalized size = 4.38 \[ -\frac {\left (-3 g^{2} x^{4}+6 f g \,x^{2}+f^{2}\right ) \ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{3 x^{3}}+\frac {-3 i \pi \,d^{2} e \,g^{2} x^{4} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )+3 i \pi \,d^{2} e \,g^{2} x^{4} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+3 i \pi \,d^{2} e \,g^{2} x^{4} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-3 i \pi \,d^{2} e \,g^{2} x^{4} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+6 i \pi \,d^{2} e f g \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )-6 i \pi \,d^{2} e f g \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-6 i \pi \,d^{2} e f g \,x^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+6 i \pi \,d^{2} e f g \,x^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}-12 d^{2} e \,g^{2} p \,x^{4}+6 d^{2} e \,g^{2} x^{4} \ln \relax (c )-6 \sqrt {-d e}\, d^{2} g^{2} p \,x^{3} \ln \left (-d -\sqrt {-d e}\, x \right )+6 \sqrt {-d e}\, d^{2} g^{2} p \,x^{3} \ln \left (d -\sqrt {-d e}\, x \right )-12 \sqrt {-d e}\, d e f g p \,x^{3} \ln \left (-d -\sqrt {-d e}\, x \right )+12 \sqrt {-d e}\, d e f g p \,x^{3} \ln \left (d -\sqrt {-d e}\, x \right )+2 \sqrt {-d e}\, e^{2} f^{2} p \,x^{3} \ln \left (-d -\sqrt {-d e}\, x \right )-2 \sqrt {-d e}\, e^{2} f^{2} p \,x^{3} \ln \left (d -\sqrt {-d e}\, x \right )+i \pi \,d^{2} e \,f^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )-i \pi \,d^{2} e \,f^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-i \pi \,d^{2} e \,f^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+i \pi \,d^{2} e \,f^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}-12 d^{2} e f g \,x^{2} \ln \relax (c )-4 d \,e^{2} f^{2} p \,x^{2}-2 d^{2} e \,f^{2} \ln \relax (c )}{6 d^{2} e \,x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.01, size = 105, normalized size = 0.62 \[ -\frac {2}{3} \, {\left (\frac {3 \, g^{2} x}{e} + \frac {f^{2}}{d x} + \frac {{\left (e^{2} f^{2} - 6 \, d e f g - 3 \, d^{2} g^{2}\right )} \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e} d e}\right )} e p + \frac {1}{3} \, {\left (3 \, g^{2} x - \frac {6 \, f g x^{2} + f^{2}}{x^{3}}\right )} \log \left ({\left (e x^{2} + d\right )}^{p} c\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.39, size = 108, normalized size = 0.64 \[ \ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {8\,g^2\,x}{3}-\frac {\frac {f^2}{3}+2\,f\,g\,x^2+\frac {5\,g^2\,x^4}{3}}{x^3}\right )-2\,g^2\,p\,x+\frac {2\,p\,\mathrm {atan}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )\,\left (3\,d^2\,g^2+6\,d\,e\,f\,g-e^2\,f^2\right )}{3\,d^{3/2}\,\sqrt {e}}-\frac {2\,e\,f^2\,p}{3\,d\,x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________